CRPEJob::SetAreaFormatFormula

Use CRPEJob::SetAreaFormatFormula to change the specified area format formula to the formula string that you supply as a parameter. This method will change only the text of a formula that already exists in the report; you cannot use it to add a formula. When you give the user the ability to change the formula at print time, your link must include code to replace formulaString with a user-generated value.

Syntax
BOOL SetAreaFormatFormula (
        short areaCode,
        short formulaName,
        CString formulaText );
Parameters

areaCode

Specifies the code for the report area for which you want to set formatting options.

formulaName

Specifies the name of the formatting formula for which you want to supply a new string. Use one of the PEP_FFN_XXX Area/Section Format Formula Constants.

formulaText

The Cstring object passed here is loaded with the specified formula text when CRPEJob::SetAreaFormatFormula completes successfully.

Returns
Remarks


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com